/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ems.dao;

import java.util.List;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.ems.entity.EmsCart;
import com.thinkgem.jeesite.modules.ems.entity.EmsCartHis;
import com.thinkgem.jeesite.modules.ems.entity.EmsStudent;

/**
 * 购物车DAO接口
 * @author zad
 * @version 2018-01-25
 */
@MyBatisDao
public interface EmsCartDao extends CrudDao<EmsCart> {
	
	// 查询购物车中该用户的商品数
	public Integer countCart(String userid);
	
	// 根据创建人删除购物车
	public int deleteByCreate(EmsCart emsCart);
	
	// 校验学员是否存在 add by zad 2018-02-23
	public List<EmsCart> checkExists(EmsCart emsCart);
	
}